import request from '@/utils/request'

export function selectAll() {
  return request({
    url: '/materialPurchase/plan-deadline/selPlanDate',
    method: 'get'
  })
}

export function insertPlanDeadline(deadline) {
  return request({
    url: '/materialPurchase/plan-deadline/insPlanDate',
    method: 'post',
    params: {
      deadline: deadline
    }
  })
}

export function updatePlanDeadline(deadline, id) {
  return request({
    url: '/materialPurchase/plan-deadline/updDateById',
    method: 'get',
    params: {
      id: id,
      deadline: deadline
    }
  })
}
